import serviceApi from './../../service/api'

export default {
    login(e)
    {
		wx.login({
			success (res) {
			  if (res.code) {
				serviceApi.get(e, 'user/get_token', {"code" : res.code, "app" : "wx"})
			  } else {
				console.log('登录失败！' + res.errMsg)
			  }
			}
		})
    }
}